/*--------------------------------------------------------------
 * File: demo19.c 编码类型：C语言  UTF-8
 * Author WRS (1352509846@qq.com)
 * 功能: 用户输入一个数字，判断是正数还是负数或是0
 * Version 0.1
 * Date 2022-01-04 
 * 
 * @copyright Copyright (c) 2022
 * 
----------------------------------------------------------------*/
#include <stdio.h>

int main(int argc, char const *argv[])
{
    double num=0;
    printf("请输入一个数：");
    scanf("%lf",&num);

    if(num < 0.0)
    {
        printf("%lf 是负数\n",num);
    }
    else if(num > 0.0)
    {
        printf("%lf 是正数\n",num);
    }
    else
    {
        printf("%lf 是0\n",num);
    }
    return 0;
}
